//
//  LGHintViewController.m
//  LuxuryGoods
//
//  Created by 刘星辰 on 2018/5/26.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "LGHintViewController.h"
#import "LGImageManagerIO.h"

@interface LGHintViewController ()
@property (weak, nonatomic) IBOutlet UILabel *hintLab;
@property (weak, nonatomic) IBOutlet UIImageView *hintImage;
@property (weak, nonatomic) IBOutlet UIButton *hintBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *hintCenterY;

@end

@implementation LGHintViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.navigationItem.title = @"预约成功";
    
    [self.hintBtn setCornerRadius:self.hintBtn.height / 2.0];
    [self.hintBtn setBackgroundImage:[LGImageManagerIO createGradualColorImage:self.hintBtn.size startColor:LOW_COLOR endColor:HIGH_COLOR] forState:UIControlStateNormal];
    
    self.hintCenterY.constant = - NAVIGATOR_HEIGHT /2.0;
}

- (IBAction)buttonClick:(id)sender
{
    
}

- (void)setHint:(NSString *)hint
{
    _hint = hint;
    self.hintLab.text = hint;
}

- (void)setImgName:(NSString *)imgName
{
    _imgName = imgName;
    self.hintImage.image = [UIImage imageNamed:imgName];
}

- (void)setBtnName:(NSString *)btnName
{
    _btnName = btnName;
    [self.hintBtn setTitle:btnName forState:UIControlStateNormal];
}


@end
